import request from '@/utils/request'

//获取网站基本信息列表
export function getSiteInfoList(params) {
	return request({
		method: 'get',
		url: 'tbSysSite/queryList',
		headers: { userButton: '62883407c41b4762a45e8b641a440a82' },
		params
	})
}

//添加网站基本信息
export function addedSiteInfo(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/add',
		headers: { userButton: 'ea8d541f20854a82b6ff7dcf068d5f15' },
		data
	})
}

//修改网站基本信息
export function updateSiteInfo(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/update',
		headers: { userButton: '49c3c93eef014884b483fc029543246c' },
		data
	})
}

//删除网站基本信息
export function deleteSiteInfo(id) {
	return request({
		method: 'post',
		url: 'tbSysSite/delete/' + id,
		headers: { userButton: '1fc9c5f21394443998fd5aa71a6ad34b' }
	})
}

//获取网站基本信息详情
export function querySiteInfo(id) {
	return request({
		method: 'get',
		url: 'tbSysSite/query/' + id,
		headers: { userButton: '347f05dc40ca48029839b71f5a358d4a' }
	})
}

//账号冻结设置/出现验证码设置
export function updateFrozenSetting(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/updateFrozen',
		headers: { userButton: 'c8e67c977aa8471293564d0e781b5bba' },
		data
	})
}

//定时强制修改密码设置
export function updateTimingSetting(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/updateiming',
		headers: { userButton: 'aa815659518c452d925a1b4272f26ef9' },
		data
	})
}

//超期禁用设置
export function updateOverdueSetting(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/updateOverdue',
		headers: { userButton: '48fe287315b74a4ca4bede75293e2987' },
		data
	})
}

//修改密码规则设置
export function updatePasswordRuleSeeting(data) {
	return request({
		method: 'post',
		url: 'tbSysSite/updatePasswordRule',
		headers: { userButton: 'c5098e8a541141b9a14c2a486fff68b8' },
		data
	})
}